#ifndef TRANSLATIONLANGUAGE_H
#define TRANSLATIONLANGUAGE_H

#include <QTranslator>

class TranslationLanguage {

public:

    static TranslationLanguage* getInstance() {
        if(!instance)
            instance = new TranslationLanguage();
        return instance;
    }

    void setEngLocale();
    void setRusLocale();

    void setLocaleForApplication();
    void setTranslationDir(const QString &dir);
    void setTranslationFile(const QString &file);

    QTranslator *getTranslator();

private:

    TranslationLanguage();
    TranslationLanguage(const TranslationLanguage& );
    TranslationLanguage& operator=(const TranslationLanguage& );
    ~TranslationLanguage();

    static TranslationLanguage* instance;
    QTranslator translator;

    QString translationDir;
    QString fileTranslation;
    
};

#endif // TRANSLATIONLANGUAGE_H



